<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>反转数组</title>
</head>
<body>
<script>
    /*
          输入：["h","e","l","l","o"]
          输出：["o","l","l","e","h"]
    * */
    let arr = ["h", "e", "l", "l", "o"];
    let reverseString = function (arr) {
        return arr.reverse();
    };
    console.log(reverseString(arr));
</script>
</body>
</html>